package main

import (
	"github.com/gin-gonic/gin"
	"go-blog-demo/controller"
)

func RoutingRegistered(router *gin.Engine) *gin.Engine {
	userController := controller.NewUserController()
	userRouter := router.Group("/user")
	userRouter.POST("/", userController.Create)
	userRouter.POST("/login", userController.Login)
	return router
}
